Availability | 2.0, enhanced in 3.0 | ||||
Description | Opens the specified URL in the specified browser. | ||||
Arguments | fileName, {browserName} |
||||
|
|||||
Returns | Nothing. | ||||
Enabler | None. | ||||
Example | The following function uses dreamweaver.browseDocument() to open the Hotwired home page in a browser: |
||||
![]() |
function goToHotwired(){ dreamweaver.browseDocument('http://www.hotwired.com/'); } |
|
![]() |
In Dreamweaver 3, you can expand this operation to open the document in Internet Explorer using the following code: | |
![]() |
function goToHotwired(){ var prevBrowsers = dw.getBrowserList(); var theBrowser = ""; for (var i=1; i < prevBrowsers.length; i+2){ if (prevBrowsers[i].indexOf('Iexplore.exe') != -1){ theBrowser = prevBrowsers[i]; break; } } dw.browseDocument('http://www.hotwired.com/',theBrowser); } |
|
![]() |
For more information on dw.getBrowserList() , see dreamweaver.getBrowserList() . |
|
![]() |